#ifndef __PNN_GL_DEFINE__H
#define __PNN_GL_DEFINE__H

#include "common/define.h"

#define OPEN_GL_CHECK_ERROR

#ifdef OPEN_GL_CHECK_ERROR
#define OPENGL_CHECK_ERROR                                         \
    {                                                              \
        GLenum error = glGetError();                               \
        if (GL_NO_ERROR != error) {                                \
            PNN_LOG(ERROR) << "ERR CHECK Fail, error = " << error; \
        }                                                          \
        PanNN_ASSERT(GL_NO_ERROR == error);                        \
    }
#else
#define OPENGL_CHECK_ERROR
#endif

#endif
